import time
import calendar

print(time.time())
print(time.ctime())
print(time.localtime())
print(time.ctime(1626000044.917689))
print(time.localtime(1626000044.917689)[0])


# print(time.strftime())
# time.perf_counter()
def showdate(year, month):
    res_01 = calendar.monthrange(year, month)
    print(calendar.monthrange(year, month))
    days_01 = res_01[1]
    wd = res_01[0]
    print(f"======Calendar of {year} Year {month} Month======")
    print("Mon  Tue  Wed  Thu  Fri  Sat  Sun")
    d = 1
    # for i in range(1, wd + 1):
    #     print("    ", end=" ")
    # for i in range(wd + 1, 8):
    #     print("{:0>2d} ".format(d), end="  ")
    #     d += 1
    # print("\n")
    while d <= days_01:
        for i in range(1, 8):
            if d > days_01 or (d == 1 and i < wd + 1):
                print("    ", end=" ")
            else:
                print("{:0>2d} ".format(d), end="  ")
                d += 1
        print("\n")


showdate(2020, 1)
